package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Elder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.ElderParamDto;

/**
 * elderService接口
 * 
 * @author ruoyi
 * @date 2025-05-23
 */
public interface IElderService extends IService<Elder>
{
    /**
     * 查询elder
     * 
     * @param id elder主键
     * @return elder
     */
    public Elder selectElderById(Long id);

    /**
     * 查询elder列表
     * 
     * @param elder elder
     * @return elder集合
     */
    public List<Elder> selectElderList(Elder elder);

    /**
     * 新增elder
     * 
     * @param elder elder
     * @return 结果
     */
    public int insertElder(Elder elder);

    /**
     * 修改elder
     * 
     * @param elder elder
     * @return 结果
     */
    public int updateElder(Elder elder);

    /**
     * 批量删除elder
     * 
     * @param ids 需要删除的elder主键集合
     * @return 结果
     */
    public int deleteElderByIds(Long[] ids);

    /**
     * 删除elder信息
     * 
     * @param id elder主键
     * @return 结果
     */
    public int deleteElderById(Long id);

    /**
     * 查询已经入住的老人列表
     * @param dto
     * @return
     */
    TableDataInfo<Elder> pageQuery(ElderParamDto dto);
}
